<?
include_once "accesscontrol.php";
include_once "index.php";

$q1 = "select * from job_plan";
$r1 = mysql_query($q1) or die(mysql_error());
$nr = mysql_num_rows($r1);

echo "<br><br><br><table align=center width=300>\n<caption align=center class=HeaderClass>Employers price plans<br><br><br></caption>\n";

if($nr < 1)
{
echo "<tr><td> You do not have any Employers Price Plans. <br>To add a plan <a class=TNA href=AddPlan.php>click here</a></td></tr>";
}
else
{
	while($a1 = mysql_fetch_array($r1))
	{
	   echo "<tr><td>

		<b> $a1[PlanName] </b>  (<a class=TNA href=\"DelPlan.php?PlanID=$a1[PlanID]\">delete</a>|<a class=TNA href=\"EditPlan.php?PlanID=$a1[PlanID]\">edit</a>)
		<ul>
		<li>$a1[postings] postings</li>\n
		<li>$a1[reviews] reviews </li>\n
		<li>price <b>$$a1[price] </li>\n
		</ul>

		</td></tr>";
	}

echo "<tr><td>To add a new plan <a class=TNA href=AddPlan.php>click here</a></td></tr>";
}

echo "</table>";

include_once('../footer.php'); 

?>